texture: Make format a property of GdkTexture
authorBenjamin Otte <otte@redhat.com>
Thu, 7 Oct 2021 00:41:30 +0000 (02:41 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 7 Oct 2021 00:41:30 +0000 (02:41 +0200)
commit8950c0dc960da50e7e38bcb5984b74286a9f178c
tree3e3e8a0d49d41aba7f567bc2954d0225525abaa1
parent2e555db9a4210480360cde2770981daf22a74619
texture: Make format a property of GdkTexture

For MemoryTexture, this is a simple change.

For GLTexture, we need to query the format at texture creation. This
sounds like a bad idea and extra work until one realizes that we'd
need to do that anyway when using the texure the first time - either
when downloading, or when trying to use it in a rendernode, where we
will soon need that information to determine if the texture prefers high
depth.
gdk/gdkgltexture.c
gdk/gdkmemorytexture.c
gdk/gdkmemorytextureprivate.h
gdk/gdktexture.c
gdk/gdktextureprivate.h
gdk/loaders/gdkpng.c
gdk/loaders/gdktiff.c
gsk/ngl/gsknglcommandqueue.c